package com.yict.csms.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "CSMS_COST_PROFESSION")
public class CostProfession {

	@Id
	@Column(name = "CPID")
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	private String cpid;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ORDER_PROFEID")
	private Profession orderProfeid;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "COST_PROFEID")
	private Profession costProfeid;

	public String getCpid() {
		return cpid;
	}

	public void setCpid(String cpid) {
		this.cpid = cpid;
	}

	public Profession getOrderProfeid() {
		return orderProfeid;
	}

	public void setOrderProfeid(Profession orderProfeid) {
		this.orderProfeid = orderProfeid;
	}

	public Profession getCostProfeid() {
		return costProfeid;
	}

	public void setCostProfeid(Profession costProfeid) {
		this.costProfeid = costProfeid;
	}
}
